package com.element.sentinel.constant;

import lombok.Getter;

@Getter
public enum RuleTypeEnum {

    FLOW("flow", "flow"),
    DEGRADE("degrade", "degrade"),
    AUTHORITY("authority", "authority"),
    SYSTEM("system", "system"),
    PARAM("param", "param-flow"),
    GATEWAY("gateway", "gw-flow"),
    API("api","gw-api-group");

    // 自定义规则ID
    private final String ruleTypeId;

    // 限流类型
    private final String ruleType;

    RuleTypeEnum(String ruleTypeId, String ruleType) {
        this.ruleTypeId = ruleTypeId;
        this.ruleType = ruleType;
    }

}